package com.itheima;

import java.time.Duration;
import java.time.LocalTime;

public class Test5 {
    public static void main(String[] args) {
        //请查找API，查找Duration时间间隔对象的方法，算出6点30分00秒 和22点18分55秒之间间隔了多少秒
        LocalTime lt1=LocalTime.of(6,30,0);
        LocalTime lt2=LocalTime.of(22,18,55);
        Duration duration = Duration.between(lt1, lt2);
        long seconds = duration.getSeconds();
        System.out.println(seconds);
    }
}
